package com.sd.repay.service;

import com.sd.repay.pojo.WithdrawOrder;

import java.util.List;

/**
 * Created by sd on 2018/08/21
 */
public interface WithdrawOrderService {

    int saveWithdrawOrder(WithdrawOrder withdrawOrder) throws Exception;

    int getSuccWithdrawCountByCardAndService(String cardNo, String service) throws Exception;

    int writeBackWithdrawInfo(String orderNo, String newStatus, String oldStatus, String transferOrderNo, String resCode, String resMsg) throws Exception;

    int updateWithdrawOrderNotifyNum(String orderNo) throws Exception;

    int updateWithdrawOrderNotifyStatus(String orderNo, String notifyStatus) throws Exception;

    List<WithdrawOrder> getNeedNotifyWithdrawOrder() throws Exception;

    List<WithdrawOrder> getUnEndStatusWithdrawOrderByCardNo(String cardNo) throws Exception;

    List<WithdrawOrder> getUnEndStatusWithdrawOrder() throws Exception;

    WithdrawOrder getWithdrawOrderByService(String service, String serviceOrderNo) throws Exception;

    String getSettledAmountByMer(String merType, String merNo) throws Exception;


}
